<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title></title>
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache"/>
    <meta http-equiv="expires" content="0"/>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
    <meta http-equiv="description" content="This is my page"/>
    <link href="css/Common.css" rel="stylesheet" type="text/css"/>
    <link href="css/sitegeneric08.css" rel="stylesheet" type="text/css"/>
    <script language="javascript">
        function back1() {
            window.history.go(-1);
        }

        function dd() {
            var odderFukuangfangshi = document.f.odderFukuangfangshi.value;
            //alert(odderFukuangfangshi);
            if (odderFukuangfangshi == "银行付款") {
                document.getElementById("qufukuan").style.display = "block";
            }
            if (odderFukuangfangshi == "货到付款") {
                document.getElementById("qufukuan").style.display = "none";
            }
        }

        function kahao() {
            var strUrl = "<%=path %>/qiantai/order/credit.jsp";
            var ret = window.showModalDialog(strUrl, "", "dialogWidth:700px; dialogHeight:500px; dialogLeft: status:no; directories:yes;scrollbars:yes;Resizable=no;");
        }
    </script>
</head>

<body>
<!-- head如果图片高度不合适。请修改Common.ces里面的".Header .HeaderTop"的高度。和".Header"的高度-->
<jsp:include flush="true" page="/shop/inc/incTop.jsp"></jsp:include>
<!-- head-->


<!--body-->
<div align="center" class="Wrapper">
    <div id="MainCenter" align="center" class="MainCenter">
        <div id="navigation" class="naivgation">
            <jsp:include flush="true" page="/shop/inc/incLeft.jsp"></jsp:include>
        </div>
        <div id="content" class="Sub">
            <div class="NewContainer770">
                <div class="BoxHeader">
                    <div class="BoxHeader-center MarginTop10">订单确认</div>
                </div>
                <div class="Slot">
                    <form action="<%=path %>/orderSubmit.action" name="f" method="post">
                        <table width="99%" border="0" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF" align="center"
                               style="margin-top:8px">
                            <tr align='center' bgcolor="#FFFFFF" height="22">
                                <td width="20%" align="left">收货人帐号：</td>
                                <td width="80%" align="left">
                                    <input type="text" readonly="readonly"
                                           value="<s:property value="#session.user.userName"/>"/>
                                </td>
                            </tr>
                            <tr align='center' bgcolor="#FFFFFF" height="22">
                                <td width="20%" align="left">收货人姓名：</td>
                                <td width="80%" align="left">
                                    <input type="text" readonly="readonly"
                                           value="<s:property value="#session.user.userRealname"/>"/>
                                </td>
                            </tr>
                            <tr align='center' bgcolor="#FFFFFF" height="22">
                                <td width="20%" align="left">收货人联系电话：</td>
                                <td width="80%" align="left">
                                    <input type="text" readonly="readonly"
                                           value="<s:property value="#session.user.userTel"/>"/>
                                </td>
                            </tr>
                            <tr align='center' bgcolor="#FFFFFF" height="22">
                                <td width="20%" align="left">收货人地址：</td>
                                <td width="80%" align="left">
                                    <input type="text" readonly="readonly"
                                           value="<s:property value="#session.user.userAddress"/>"/>
                                </td>
                            </tr>
                            <tr align='center' bgcolor="#FFFFFF" height="22">
                                <td width="20%" align="left">送货地址：</td>
                                <td width="80%" align="left"><input type="text" name="odderSonghuodizhi"/></td>
                            </tr>
                            <tr align='center' bgcolor="#FFFFFF" height="22">
                                <td width="20%" align="left">付款方式：</td>
                                <td width="80%" align="left">
                                    <select name="odderFukuangfangshi" style="width:155px;" onchange="dd()">
                                        <option value="货到付款">货到付款</option>
                                        <option value="银行付款">银行付款</option>
                                    </select>
                                    <input type="button" onclick="kahao()" id="qufukuan" style="display: none"
                                           value="查看卡号"/>
                                </td>
                            </tr>
                        </table>
                        <table>
                            <tr height="7">
                                <td></td>
                            </tr>
                            <tr>
                                <td><a href="#" onclick="back1()"><img border="0" src="<%=path %>/img/back.jpg"/></a>
                                </td>
                                <td><img border="0" src="<%=path %>/img/orderSub.jpg"
                                         onclick="javascript:document.f.submit();"/></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!--body-->


<!--foot -->
<div align="center" class="Wrapper">
    <div id="footer" align="center" class="Footer">
        <jsp:include flush="true" page="/shop/inc/incFoot.jsp"></jsp:include>
    </div>
</div>
<!--foot -->
</body>
</html>
